# Page Set

Applies one or more page configuration templates to a SharePoint site by processing rows from an Excel file. Each row identifies a target site and references named PageCfg templates defined in config.json. The handler creates or updates the pages defined in those templates.

Filename pattern: filename must contain pageset (case-insensitive).
Example: 20240115 PageSet pages.xlsx

# Columns

Name Required Description
ClientCode No Client identifier used together with MatterCode to look up the site URL from the matter list.
MatterCode Conditional Matter identifier. Required when Url is not provided. The site URL is resolved from the matter list.
Url / SiteUrl Conditional Server-relative URL of the target SharePoint site. Required when MatterCode is not provided.
PageSet / PageCfg Conditional Name of a single PageCfg template from config.json. This page is created or updated and promoted as the site home page. Required when PageSets is not provided.
PageSets / PageCfgs Conditional Comma- or semicolon-separated names of one or more PageCfg templates from config.json. Each page is created or updated in order. Pages are not promoted as home page. Required when PageSet is not provided.

Either Url or MatterCode must be provided. Either PageSet or PageSets must be provided.

Any additional columns are passed as properties to the page templates, allowing templates to reference dynamic values.

# Behavior

When only MatterCode is given, the handler looks up the site URL from the matter list. If the matter is not found or has no site URL, the row fails.

Both PageSet and PageSets may be provided in the same row: the single template named in PageSet is applied first (and set as the home page), then each template named in PageSets is applied in order (without home page promotion).

If a referenced template name is not found in config.json, the row fails with an error identifying the missing name.

Last Updated: 4/20/2026, 12:54:05 PM